#pragma once
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <assert.h>
typedef int Heaptypedate;
typedef struct Heap {
	Heaptypedate* a;
	int size;
	int capacity;
}hp;
void AdjustUp(Heaptypedate* a, int child);
void AdjustDown(Heaptypedate* a, int size, int parent);
void Swap(Heaptypedate* a, Heaptypedate* b);
void HeapInit(hp* php);
void HeapDistory(hp* php);
void HeapPush(hp* php , Heaptypedate x);
void HeapPop(hp* php);
Heaptypedate HeapTop(hp* php);
bool HeapEmpty(hp* php);
int HeapSize(hp* php);